<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get all result entries</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ldap-get-dn.html">ldap_get_dn</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ldap-get-option.html">ldap_get_option</a></div>
 <div class="up"><a href="ref.ldap.html">LDAP 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ldap-get-entries" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ldap_get_entries</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ldap_get_entries</span> &mdash; <span class="dc-title">Get all result entries</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ldap-get-entries-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>ldap_get_entries</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$link_identifier</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result_identifier</code></span>
   )</div>

  <p class="para rdfs-comment">
   Reads multiple entries from the given result, and then reading the
   attributes and multiple values.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ldap-get-entries-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">link_identifier</code></em></dt>

     <dd>

      <p class="para">
       An LDAP link identifier, returned by <span class="function"><a href="function.ldap-connect.html" class="function">ldap_connect()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">result_identifier</code></em></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-get-entries-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a complete result information in a multi-dimensional array on
   success and <strong><code>FALSE</code></strong> on error.
  </p>
  <p class="para">
   The structure of the array is as follows.
   The attribute index is converted to lowercase. (Attributes are
   case-insensitive for directory servers, but not when used as
   array indices.)
   <div class="informalexample">
    <div class="example-contents">
<div class="cdata"><pre>
return_value[&quot;count&quot;] = number of entries in the result
return_value[0] : refers to the details of first entry

return_value[i][&quot;dn&quot;] =  DN of the ith entry in the result

return_value[i][&quot;count&quot;] = number of attributes in ith entry
return_value[i][j] = NAME of the jth attribute in the ith entry in the result

return_value[i][&quot;attribute&quot;][&quot;count&quot;] = number of values for
                                        attribute in ith entry
return_value[i][&quot;attribute&quot;][j] = jth value of attribute in ith entry
</pre></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ldap-get-entries-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ldap-first-entry.html" class="function" rel="rdfs-seeAlso">ldap_first_entry()</a> - Return first result id</span></li>
    <li class="member"><span class="function"><a href="function.ldap-next-entry.html" class="function" rel="rdfs-seeAlso">ldap_next_entry()</a> - Get next result entry</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ldap-get-dn.html">ldap_get_dn</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ldap-get-option.html">ldap_get_option</a></div>
 <div class="up"><a href="ref.ldap.html">LDAP 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
